/*
 * MessageInfo.hpp
 *
 *  Created on: Nov 2, 2013
 *      Author: vladimir
 */

#ifndef MESSAGEINFO_HPP_
#define MESSAGEINFO_HPP_

#include "constants.hpp"

#include <array>

namespace mq
{

struct MessageInfo
{
	MessageInfo();

	void UpdateMessageToSend(
			const unsigned int id,
			const char* data,
			const unsigned int size );


	unsigned int 	id;

	constexpr static unsigned int maxBufferSize = MAX_MESSAGE_SIZE - sizeof( id );
	std::array< char, maxBufferSize > buffer;
};

} /* namespace mq */

#endif /* MESSAGEINFO_HPP_ */
